/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cashbox.gui.actions;

import static com.cashbox.gui.actions.GuardarAction.DESCRIPCION;
import static com.cashbox.gui.actions.GuardarAction.KEVENT;
import static com.cashbox.gui.actions.GuardarAction.NOMBRE;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.AbstractAction;
import static javax.swing.Action.ACCELERATOR_KEY;
import static javax.swing.Action.MNEMONIC_KEY;
import static javax.swing.Action.NAME;
import static javax.swing.Action.SHORT_DESCRIPTION;
import javax.swing.KeyStroke;

/**
 *
 * @author Gustavo Enrique Ruiz Cisneros
 */
public class RefrescarAction extends AbstractAction {

    public static String NOMBRE = "Actualizar";
    public static String DESCRIPCION = "Actualiza la información de la base de datos";
    protected static int KEVENT = KeyEvent.VK_S;

    public RefrescarAction() {
        putValue(NAME, NOMBRE);
        putValue(SHORT_DESCRIPTION, DESCRIPCION);
        putValue(MNEMONIC_KEY, new Integer(KEVENT));
        putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KEVENT,
                Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
        //putValue(SMALL_ICON, Configuracion.ICONO_GUARDAR);
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
